/**
 * 
 */
package org.codesketch.collector.cofiguration;

import org.codesketch.collector.domain.Record;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.oxm.jaxb.Jaxb2Marshaller;

/**
 * @author Quirno Brizi
 *
 */
@Configuration
public class XMLMarshalerConfiguration {
	
	@Bean
	public Jaxb2Marshaller marshaler() {
		Jaxb2Marshaller mr = new Jaxb2Marshaller();
		mr.setClassesToBeBound(new Class[] {Record.class});
		return mr;
	}
}
